<?php 

$style = 'style="width:auto; font-family:Arial;font-size:11px; margin:0; height:auto; padding:2px 2px 2px 0px"';

// Set day array
for($i=1; $i<31; $i++)
{
    $day[$i] = $i;
}


$month = array(
    '1' => 'Januar',
    '2' => 'Februar',
    '3' => 'März',
    '4' => 'April',
    '5' => 'Mai',
    '6' => 'Juni',
    '7' => 'Juli',
    '8' => 'August',
    '9' => 'September',
    '10' => 'Oktober',
    '11' => 'November',
    '12' => 'Dezember'    
);

// Set year array
for($i=2020; $i>=1990; $i--)
{
    $year[$i] = $i;
}

// Set hour array
for($i=0; $i<24; ++$i)
{
    $hour[$i] = $i;
}

// Set minute array
for($i=0; $i<60; $i++)
{
    $minute[$i] = $i;
}
?>

<table style="font-size:11px; font-family:Arial;">
    <?php if($display_headings): ?>
    <tr style="width: 100px;">
        <th>Tag</th>
        <th>Monat</th>
        <th>Jahr</th>
        <th>Std</th>
        <th>Min</th>
    </tr>
    <?php endif; ?>
    <tr>
        <td><?php echo form_dropdown('day', $day, '', $style); ?></td>
        <td><?php echo form_dropdown('month', $month, '', $style); ?></td>
        <td><?php echo form_dropdown('year', $year, '', $style); ?></td>
        <td><?php echo form_dropdown('hour', $hour, '', $style); ?></td>
        <td><?php echo form_dropdown('minute', $minute, '', $style); ?></td>
    </tr>
</table>





